package com.learn.security.modules.vo;


import com.learn.security.common.constant.CommonConstants;

/**
 * created by yuanjunjie on 2018/6/4 下午9:40
 */
public enum LoginResultCode implements IResultCode {
    SUCCESS(CommonConstants.SUCCESS, "success"),
    FAIL(CommonConstants.FAIL, "账号或密码错误"),
    FAIL_Expired(100, "账号过期"),
    FAIL_Locked(101, "账号被锁");

    private int code;
    private String message;

    LoginResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public void setCode(int code) {
        this.code = code;
    }
    @Override
    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
